5
5
.
.
6
6
.
.
c
c
o
o
r
r
n
n
e
e
r
r
R
R
a
a
d
d
i
i
u
u
s
s
I
I
n
n
f
f
o
o
.cornerRadius creates Background with rounded corners.
Syntax
.cornerRadius(18.0)
E
E
x
x
a
a
m
m
p
p
l
l
e
e
Example
struct ContentView: View {
var body: some View {
VStack {
Text("Example").background(Color.blue)
.cornerRadius(18.0)
}
}
}
Output